require('../css/advertising.less')

document.ready(function(){
    let countDown=document.querySelector('#countDown');
    let time=document.querySelector('#time');

    //跳转
    countDown.addEventListener('click',function(){
        location.href='./register.html'
    })
    //倒计时
    window.setInterval(function(){
        let count=time.textContent-1
        time.textContent=count
        if(count===0){
            location.href='./register.html'
        }
    },1000)


})